package com.meilingcloud.research.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.meilingcloud.research.domain.RwsFollow;

import java.util.List;
import java.util.Map;

/**
 * 随访列表Service接口
 *
 * @author chenl
 * @date 2021-04-21
 */
public interface IRwsFollowService extends IService<RwsFollow> {

    /**
     * 查询列表
     */
    List<RwsFollow> queryList(RwsFollow rwsFollow);

    List<RwsFollow> handleFollowList(List<RwsFollow> list);

    boolean saveFollow(RwsFollow rwsFollow);

    boolean updateFollowById(RwsFollow rwsFollow);

    boolean updateFollowBatch(List<RwsFollow> rwsFollows);

    RwsFollow getFollow(Long followId);

    /**
     * 待随访数量
     */
    Integer getToFollowCount();

    /**
     * 待随访日历
     */
    Map<String, Integer> statisticFollow();
}
